/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.MeasureFacade;
import org.ipti.br.tag.entity.WeightAndHeight;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author FelipeMSX
 */
@Stateless
public class MeasureBO {
    
        
    @EJB
    private MeasureFacade measureFacade;
    
    public WeightAndHeight findMeasurebyCampaign(long humanID, long campaignID){
       return  measureFacade.findMeasurebyCampaign(humanID, campaignID);
    }

    public void create(WeightAndHeight measure) {
        measureFacade.create(measure);
    }

    public void edit(WeightAndHeight measure) {
        measureFacade.edit(measure);
    }

    public void remove(WeightAndHeight measure) {
        measureFacade.remove2(measure);
    }

    public WeightAndHeight find(Object id) {
        return measureFacade.find(id);
    }

    public List<WeightAndHeight> findAll() {
        return measureFacade.findAll();
    }

    public MeasureFacade getMeasureFacade() {
        return measureFacade;
    }

    public void setMeasureFacade(MeasureFacade measureFacade) {
        this.measureFacade = measureFacade;
    }
   
}
